package com.ruoyi.food.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import com.ruoyi.system.api.domain.SysFile;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 食品质量安全标准对象 opm_food_safe_norm
 *
 * @author cjie
 * @date 2021-07-24
 */
@Data
@ApiModel
public class OpmFoodSafeNorm extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @Excel(name = "编号")
    @ApiModelProperty(value = "编号")
    @JsonSerialize(using = com.fasterxml.jackson.databind.ser.std.ToStringSerializer.class)
    @JSONField(serializeUsing= ToStringSerializer.class)
    private Long id;

    /** 安全标准名称 */
    @Excel(name = "安全标准名称")
    @ApiModelProperty(value = "安全标准名称")
    private String name;

    /** 标准类型 */
    @Excel(name = "标准类型")
    @ApiModelProperty(value = "标准类型")
    private String type;

    /** 标准来源 */
    @Excel(name = "标准来源")
    @ApiModelProperty(value = "标准来源")
    private String sorce;

    /** 附件份数 */
    @Excel(name = "附件份数")
    @ApiModelProperty(value = "附件份数")
    private Long attachNum;

    /** 附件 */
    @Excel(name = "附件")
    @ApiModelProperty(value = "附件")
    private String url;

    /** 附件id集合 */
    @Excel(name = "附件id集合")
    @ApiModelProperty(value = "附件id集合")
    private List<Long> fileIdList;

    /** 附件集合 */
    @Excel(name = "附件集合")
    @ApiModelProperty(value = "附件集合")
    private List<SysFile> fileList;

}
